import request from "@/request";

export const hotPathAdd = (hotPath: any) =>
  request.post("/hotPath/add", hotPath);
export const hotPathDelete = (id: number) =>
  request.get("/hotPath/delete", {
    params: {
      id: id,
    },
  });
export const hotPathUpdate = (hotPath: any) =>
  request.post("/hotPath/update", hotPath);

export const addInfoRequest = (info: any) =>
  request.post("/materialIfo/add", info);
export const hotPathSelectAll = () => request.get("/hotPath/selectAll");
export const hotPathSelectOne = (id: number) =>
  request.get("/hotPath/selectOne", {
    params: {
      id: id,
    },
  });
